PHP $_SERVER['REMOTE_HOST'] returns ::1
Posted
by Peter
on Stack Overflow
See other posts from Stack Overflow
or by Peter
Published on 2010-03-20T05:15:05Z
Indexed on
2010/03/20
5:21 UTC
Read the original article
Hit count: 294
Hi
I am trying to get the IP address of the website visitor in PHP. I'm expecting $_SERVER['REMOTE_HOST'] to return something like 127.0.0.1, but it's returning ::1.
Kind regards
Peter
© Stack Overflow or respective owner